package com.framewiki.example.mapper;

import com.cdkjframework.core.base.mapper.BaseMapper;
import com.framewiki.example.entity.RmsUserEntity;
import com.framewiki.example.entity.extend.RmsUserExtendEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ProjectName: example-mapper
 * @Package: com.framewiki.example.mapper
 * @ClassName: RmsUser
 * @Description: 登录用户
 * @Author: DESKTOP-U0VVSVK
 * @Version: 1.0
 */
@Component
public interface RmsUserMapper extends BaseMapper<RmsUserEntity> {

    /**
     * 根据 账号 查询 账户数据
     *
     * @param loginName
     * @return
     */
    int existsLoginName(String loginName);

    /**
     * 根据 微信id 查询 账户数据
     * @param weChatOpenId 微信id
     * @return 账户数据
     */
    RmsUserExtendEntity findRmsUserEntityByWeChatOpenId(String weChatOpenId);

    /**
     * 查询 账户数据列表
     * @param entity 实体
     * @return 数据列表
     */
    List<RmsUserExtendEntity> listFindRmsUser(RmsUserExtendEntity entity);
}

